package com.example.noobpackage.ui.packagemarket

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.noobpackage.logic.repository.MarketRepository
import kotlinx.coroutines.launch

class PackageMarketViewModel : ViewModel() {
    // 代取市场请求列表
    val marketList = MarketRepository.getMarketPackages()

    // 更新代取市场请求列表
    fun updateMarketList(account: Long) {
        viewModelScope.launch {
            MarketRepository.updateMarketPackages(account)
        }
    }

}